#include "Main.h"
#include "FileCopier.h"
#include <vector>
// Main.cpp : This file contains the 'main' function. Program execution begins and ends there.
// Run program: Ctrl + F5 or Debug > Start Without Debugging menu
// Debug program: F5 or Debug > Start Debugging menu
using namespace std;
#if defined WIN32 || defined _WIN32 || defined __CYGWIN__
int wmain(int argc, gchar* argv[])
#else
int main(int argc, gchar* argv[])
#endif
{
    int returnValue;
    const double version = 2.3;
    // Testing:
#ifdef _DEBUG
    gchar** test;
    vector<gstring> test2;    
    int loop;
    test2.push_back(TEXT("FileCopier"));
    //test2.push_back(TEXT("-M"));
    //test2.push_back(TEXT("-D"));    
    test2.push_back(TEXT("-T"));
    //test2.push_back(TEXT("-S"));
    //test2.push_back(TEXT("100"));
    test2.push_back(TEXT("C:\\Source"));
    //test2.push_back(TEXT("C:\\Temp"));
    test = new gchar*[test2.size()];
    for (loop = 0; loop < test2.size(); loop++)
    {
        test[loop] = (gchar*)test2[loop].c_str();
    }
    returnValue = FileCopier::RunCopier((int)test2.size(), test, version);
#else
    returnValue = FileCopier::RunCopier(argc, argv, version);
#endif
    return returnValue;
}

